#include <iostream>
#include <QtCore/QCoreApplication>
#include "Serveur.h"

using namespace std;

int main(int argc, char * argv[])
{
    QCoreApplication a(argc, argv);

    QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));

    int port = 50885;
    //QString pass = "";
    if(argc > 1) port = atoi(argv[1]);
    Serveur *serveur = new Serveur();
    serveur->lancerServeur(port);

    //while(1){}

    return a.exec();
}
